import request from '_utils/fetch'
import config from '_config/index'

// export function loginBycode(code, channel) {
//   return request({
//     method: 'get',
//     url: `${config.baseUrl.baseUrl}/apis/v1/login/login-bycode?code=${code}&channel=${channel}`
//   })
// }
//
export function getWeather(location='101010100') {
  return request({
    method: 'get',
    header: {
      'X-QW-Api-Key': 'd214ce4ff9e542ccad7b3a6a5ac25c96'
    },
    url: `${config.baseUrl.weather}/v7/weather/3d?location=${location}`
  })
}
